//
// Created by martin on 8/3/21.
//

#include <unistd.h>

#include "user.h"

int user_getRootPrivilege()
{
    if (setuid(0) < 0) { /* root user */
        return -1;
    }

    if (setgid(0) < 0) { /* root group */
        return -1;
    }

    return 0;
}
